#ifndef CHARACTERFEATUREMANAGEMENTFORM_H
#define CHARACTERFEATUREMANAGEMENTFORM_H


#include "featuretablemodel.h"


#include <dtwentymodel.h>
#include <campaign.h>


#include <QWidget>
#include <QSortFilterProxyModel>


namespace Ui {
class CharacterFeaturesForm;
}

class CharacterFeaturesForm : public QWidget
{
    Q_OBJECT
    
public:
    explicit CharacterFeaturesForm(QWidget *parent = 0);
    ~CharacterFeaturesForm();

    void setSourceModel(DTwentyModel* sourceModel);
    void setCampaign(Campaign* campaign);

    void addCharacterClass();
    void removeCharacterClass();

    void refresh();


protected:

    virtual void showEvent(QShowEvent *e);


private:

    Ui::CharacterFeaturesForm *ui;

    FeatureTableModel* m_featureModel;
    QSortFilterProxyModel* m_sortFilter;

};

#endif // CHARACTERFEATUREMANAGEMENTFORM_H
